package com.system.demo.entity.auth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("system_role")
public class SystemRole {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer roleId;
    private String roleName;
    private String roleDescription;
    private Integer isAvailable;
    private Integer isDefault;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
